﻿@model IEnumerable<CashOrCard.Models.AdvtSite>
<div id="mostpopular">
    <div class="title">
        <span>Most Populars</span>
    </div>
    <div class="line"></div>
    <div class="narrows"><img src="~/Images/mostpopular-narrow.gif" /></div>
</div>
<div id="mostpopular-downarrow"></div>
<div id="mostpopular-content">
    
    @foreach (var item in Model)
    {
        <div class="section">
            <div class="thumb">
                <a href="/site/index/@Html.DisplayFor(modelItem=>item.AdvtSiteId)"><img src='@string.Format("{0}{1}.jpg", item.SiteThumb.Substring(0, item.SiteThumb.Length - 4).Trim(), "_large")' /></a>
            </div>
            <div class="section-content">
                <div class="name">@Html.ActionLink(item.SiteName, "index", "site", new { id = item.AdvtSiteId }, "")</div>
                <div class="rate">                    
                    @Html.Partial("_SiteRating",item) &nbsp;
                    @*@Html.DisplayFor(modelItem => item.SiteRate)*@
                </div>
                <div class="description">@Html.DisplayFor(modelItem => item.SiteDescription)</div>
                <div class="cards">  
                    @foreach (var cardItem in item.CardTypes)
                    {
                        <img src="@cardItem.ThumbPath" />
                    }             
                    
                </div>
            </div>
        </div>
    }    
</div>